package com.hd.hdxgddtools.mybatis.config;


import lombok.Data;

import java.util.Map;

@Data
public class PackageConfig {
    private String parent = "";
    private String moduleName = "";
    private String entity = "entity";
    private String service = "service";
    private String serviceImpl = "service.impl";
    private String mapper = "mapper";
    private String xml = "mapper.xml";
    private String controller = "controller";
    private Map<String, String> pathInfo;

    public com.baomidou.mybatisplus.generator.config.PackageConfig toPackageInfo() {
        com.baomidou.mybatisplus.generator.config.PackageConfig config = new com.baomidou.mybatisplus.generator.config.PackageConfig();
        config
                .setParent(this.parent)
                .setModuleName(this.moduleName)
                .setEntity(this.entity)
                .setService(this.service)
                .setServiceImpl(this.serviceImpl)
                .setMapper(this.mapper)
                .setXml(this.xml)
                .setController(this.controller)
                .setPathInfo(this.pathInfo);
        return config;
    }

}
